const Store = require("electron-store");
const store = new Store();
const homeDir = require("os").homedir();
const desktopDir = `${homeDir}\\Desktop\\`;
export default function initStore() {
  if (!store.has("FormConfig.默认")) {
    store.set("FormConfig.默认", {
      videoName: "默认视频",
      videoFblSelect: "640*480",
      speed: 900,
      time: 3.75
    });
  }
  if (!store.has("savePath")) {
    store.set("savePath", desktopDir);
  }
  if (!store.has("audition")) {
    store.set(
      "audition",
      "如果你觉得这个项目还不错， 欢迎Star、Fork和PR。你的Star是对作者最好的鼓励。"
    );
  }
}
